package com.conduit.comnands;

import com.conduit.commands.prototype.AbstractGetValueCommand;
import com.conduit.utils.Utils;

public class GetValueFromWebCommand extends AbstractGetValueCommand {

	public GetValueFromWebCommand(){
		//get value from file <file name>  <regex>  <argument name>
		commandSyntax = "get value from web\\s{2,}(.*)\\s{2,}(.*)\\s{2,}(.*)";
	}
	
	@Override
	protected String getFileContent(String textInput) throws Exception {
		return Utils.readFileFromWeb(textInput);
	}
	
	@Override
	public String getCommandName() {
		return "Get Value From Web";
	}

}
